#include <iostream>
using namespace std;

void unique(int a[],int n)
{
	int num[100]={0};
	int *b=new int[n];
	int count=0;
	for (int i=0;i<n;i++)
	{
		if (num[a[i]]!=1)
		{
			b[count++]=a[i];
			num[a[i]]=1;
		}
	}
	for (int i=0;i<count;i++)
	{
		cout<<b[i]<<" ";
	}
}

int main()
{
	int a[]={1,2,2,4,5,6,3,6};
	int len=sizeof(a)/sizeof(a[0]);
	unique(a,len);
	return 0;
}